package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 用户关联商家表(收藏功能)
 * @author 16693103420
 * @since 2024-01-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tmp_user_business")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserBusinessModel implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//用户商家关联表ID(收藏)
    private Integer userId;//用户ID
    private Integer businessId;//商家ID
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
}
